<?php
/**
 * Description of formTextArea
 *
 * @author dll_hell
 */
class formTextArea extends labeledFormItem
{
    protected $text;
    public function __construct($name, $label = NULL, $text = NULL)
    {
        parent::__construct($name, $label);
        $this->text = $text;
    }
    public function __toString()
    {
        $result ='';
        $result .= parent::__toString();
        $result .= sprintf("<textarea name = \"%s\">%s</textarea>",
                $this->name,
                $this->text);
        return $result;
        
        
    }
}
?>
